import request from '@/utils/request'


// 查询订单列表 当天并且正在生产，未生产，停产
export function ordertoday() {
  return request({
    url: '/device/order/today',
    method: 'get'
  })
}
// 查询订单列表 全部
export function orderlist() {
  return request({
    url: 'system/order/list',
    method: 'get'
  })
}
// 查询订单列表  发泡蜡全部
export function ordertodayP() {
  return request({
    url: 'system/order/listPop',
    method: 'get'
  })
}
// 查询订单列表  tesla全部
export function ordertodayT() {
  return request({
    url: 'system/order/listTesla',
   
    method: 'get'
  })
}

// 查询订单列表 未知
export function ordercart1() {
  return request({
    url: '/device/order/cart1',
    // headers: {
    //   isToken: false
    // },
    method: 'get',
  })
}

// 油化蜡折线图
// 一号蜡池
export function oilline(myTime) {
  return request({
    url: '/device/temperature/oilOne?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 二号蜡池
export function oillinetow(myTime) {
  return request({
    url: '/device/temperature/oilTwo?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 三号蜡池
export function oillinethree(myTime) {
  return request({
    url: '/device/temperature/oilThree?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 四号蜡池
export function oillinefour(myTime) {
  return request({
    url: '/device/temperature/oilFour?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 五号蜡池
export function oillinefive(myTime) {
  return request({
    url: '/device/temperature/oilFive?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 进油口
export function oillinesix(myTime) {
  return request({
    url: '/device/temperature/oilSix?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 出油口
export function oillineseven(myTime) {
  return request({
    url: '/device/temperature/oilSeven?myTime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 提交进油口
export function oilIn(temp) {
  return request({
    url: '/device/sendTcpIn?temp=' + temp,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 提交出油口
export function oilOn(temp) {
  return request({
    url: '/device/sendTcpOut?temp=' + temp,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 油化蜡表格 ---温度
export function oilNow() {
  return request({
    url: '/device/temperature/oilNow',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 油化蜡表格 ---能耗
export function consNow() {
  return request({
    url: '/device/temperature/consNow',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}


// 运行状态折线图
export function stateLine() {
  return request({
    url: '/device/oil/stateLine?dateLine=2022-04-27',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 订单开始生产
export function setprod(id) {
  return request({
    url: '/device/order/setprod?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post',
  })
}

// 订单完成
export function finish(id) {
  return request({
    url: '/device/order/finish?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post'
  })
}

// 暂停生产
export function stop(id) {
  return request({
    url: '/device/order/stop?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post'
  })
}

// 点检上传
export function checkAdd(data) {
  return request({
    url: '/device/checkAdd',
    headers: {
      isToken: false
    },
    method: 'post',
    data
  })
}


// 点检查询
export function checkList() {
  return request({
    url: '/device/checkList',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//订单列表
export function dingDanList() {
  return request({
    url: '/device/order/cart1',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}
//订单开始生产  
export function setprodList(id) {
  return request({
    url: '/device/order/setprod?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post',
    data: id
  })
}
//订单结束
export function finishList(id) {
  return request({
    url: '/device/order/finish?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post',
    data: id
  })
}
//暂停订单
export function stopList(id) {
  return request({
    url: '/device/order/stop?id=' + id,
    headers: {
      isToken: false
    },
    method: 'post',
    data: id
  })
}

//导热油化蜡设备散热片温度曲线
export function srTempAPI(myTime) {
  return request({
    url: '/device/srTemp?mytime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get',
  })
}

//导热油化蜡油泵电机温度曲线
export function djTempAPI(myTime) {
  return request({
    url: '/device/djTemp?mytime=' + myTime,
    headers: {
      isToken: false
    },
    method: 'get',
  })
}